#-*- coding: utf-8 -*-

import sys
from pyLot.core import Path, init_loggers
#from pyLot.application import APPLICATION
from pyLot.qtgui import compile_ui_files

if __name__ == '__main__' :

  if len(sys.argv) != 2 :
    print >> sys.stderr, 'usage: pyLot-compile-ui-files module'
    print >> sys.stderr, 'example: pyLot-compile-ui-files pyLot'

  init_loggers(['pyLot.qtgui'])
  from pyLot.application import APPLICATION
  APPLICATION.FORCE_UI_GENERATION = True
  compile_ui_files(module=sys.argv[1])
